projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b58c35
)
(byte-compile-declare-function): Third argument to declare-function
author
Glenn Morris
<rgm@gnu.org>
Fri, 30 Nov 2007 07:45:18 +0000
(07:45 +0000)
committer
Glenn Morris
<rgm@gnu.org>
Fri, 30 Nov 2007 07:45:18 +0000
(07:45 +0000)
must be a list to specify arglist.
lisp/emacs-lisp/bytecomp.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/bytecomp.el
b/lisp/emacs-lisp/bytecomp.el
index bc83a25cb3afd842cb46e15815ef8d5960f23cc7..0f7546bc6425cfdc9ef4ddc48bd57760bb15f5f9 100644
(file)
--- a/
lisp/emacs-lisp/bytecomp.el
+++ b/
lisp/emacs-lisp/bytecomp.el
@@
-2823,7
+2823,8
@@
If FORM is a lambda or a macro, byte-compile it as a function."
(put 'declare-function 'byte-hunk-handler 'byte-compile-declare-function)
(defun byte-compile-declare-function (form)
(push (cons (nth 1 form)
- (if (< (length form) 4) ; arglist not specified
+ (if (or (< (length form) 4) ; arglist not specified
+ (not (listp (nth 3 form))))
t
(list 'declared (nth 3 form))))
byte-compile-function-environment)